package com.example.tttttttt.service.impl;

import com.example.tttttttt.mapper.UserMapper;
import com.example.tttttttt.po.User;
import com.example.tttttttt.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName
 * @Description
 * @Author
 * @Date 2022/05/20
 * @Version
 */
@Service("myuser")
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public List<User> getAll() {
        List<User> list = userMapper.getAll();
        return list;
    }

    @Override
    public int deleteUser(int uid) {
        return userMapper.deleteUser(uid);
    }
}
